<template>
    <div class="app-container">
        <mt-header fixed title="vue.2.0"></mt-header>
        <!-- 顶部Header区域 -->
		<transition mode="out-in">
        	<router-view></router-view>			
		</transition>
        <!-- 中间的路由 -->
        <!-- 底部 导航区域 -->
        <nav class="mui-bar mui-bar-tab">
			<router-link class="mui-tab-item " to="/home">
				<span class="mui-icon mui-icon-home"></span>
				<span class="mui-tab-label">首页</span>
			</router-link>
			<router-link class="mui-tab-item" to="/member">
				<span class="mui-icon mui-icon-map"></span>
				<span class="mui-tab-label">地图</span>
			</router-link>
			<router-link class="mui-tab-item" to="/shopcar">
				<span class="mui-icon mui-icon-extra mui-icon-extra-cart">
					<span class="mui-badge">0</span>
				</span>
				<span class="mui-tab-label">购物车</span>
			</router-link>
			<router-link class="mui-tab-item" to="/search">
				<span class="mui-icon mui-icon-search"></span>
				<span class="mui-tab-label">搜索</span>
			</router-link>
        </nav>
    </div>
</template>
<script>
    export default {
        
    }
</script>
<style lang="less" scoped>
	@font-face {
		font-family: 'MyFont';   /*字体名称*/
		src: url('lib/font/印品粗朗体.ttf');       /*字体源文件*/
	}
    .app-container{
		font-family: 'MyFont';
		max-width: 100%;
		overflow: hidden;
		padding-top: 40px;
		.v-enter{
			transform: translateX(100%);
			opacity: 0;
		}
		.v-leave-to{
			transform: translateX(-100%);
			opacity: 0;
		}
		.v-enter-active,
		.v-leave-active{
			transition: all .3s ease;
		}
		.router-link-active{
			color:#007aff
		}
    }
</style>
